package com.kingschan.jeasytag.tag.window;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import com.kingschan.jeasytag.core.annotations.tag.*;
import com.kingschan.jeasytag.core.parse.TagParseFactory;
import com.kingschan.jeasytag.tag.RootTag;
/**
 * �ô�����һ���������γɵĿ��϶���壬����������Ϊһ��Ӧ�ó��򴰿ڡ�Ĭ������£�һ�����ڿ����ƶ��������С�͹رա���������Ϊ��̬HTML��ͨ��AJAX��̬����������Ҳ���Ա����塣
 * @author kingschan
 *date:2013-4-18
 */
@TagMetaData(CssClass = "easyui-window", tag = "div"
)
public class WindowTag extends RootTag{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@StringField(description="���ڵı���")
	private String title;
	@BooleanField(description="�����Ƿ���ʾ�۵���ť")
	private String collapsible;
	@BooleanField(description="�����Ƿ���ʾ��С����ť��")
	private String minimizable;
	@BooleanField(description="�����Ƿ���ʾ��󻯰�ť")
	private String maximizable;
	@BooleanField(description="�����Ƿ���ʾ�رհ�ť")
	private String closable;
	@BooleanField(description="�����Ƿ��ڳ�ʼ�����ʱ�رգ����أ�����")
	private String closed;
	@BooleanField(description="���崰���Ƿ���Ա��Ϸ�")
	private String draggable;
	@BooleanField(description="���崰���Ƿ���Ա�����")
	private String resizable;
	@BooleanField(description="�������Ϊtrue����ʾ���ڵ�ʱ����ʾ��Ӱ")
	private String shadow;
	@BooleanField(description="������β��ִ��ڣ��������Ϊtrue�����ڽ���ʾ����ĸ������У�������ʾ������Ԫ�ص�����")
	private String inline;
	@BooleanField(description="���崰���Ƿ��������Ч��")
	private String modal;
	
	@Override
	public int doStartTag() throws JspException {
			
		try {
			this.pageContext.getOut().write(TagParseFactory.executeParse(this,pageContext));
		} catch (Exception e) {		
			e.printStackTrace();
		}
		return super.doStartTag();
	}
	
	@Override
	public int doEndTag() throws JspException {
		try {
			this.pageContext.getOut().write("</div>");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return super.doEndTag();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCollapsible() {
		return collapsible;
	}

	public void setCollapsible(String collapsible) {
		this.collapsible = collapsible;
	}

	public String getMinimizable() {
		return minimizable;
	}

	public void setMinimizable(String minimizable) {
		this.minimizable = minimizable;
	}

	public String getMaximizable() {
		return maximizable;
	}

	public void setMaximizable(String maximizable) {
		this.maximizable = maximizable;
	}

	public String getClosable() {
		return closable;
	}

	public void setClosable(String closable) {
		this.closable = closable;
	}

	public String getClosed() {
		return closed;
	}

	public void setClosed(String closed) {
		this.closed = closed;
	}

	

	public String getDraggable() {
		return draggable;
	}

	public void setDraggable(String draggable) {
		this.draggable = draggable;
	}

	public String getResizable() {
		return resizable;
	}

	public void setResizable(String resizable) {
		this.resizable = resizable;
	}

	public String getShadow() {
		return shadow;
	}

	public void setShadow(String shadow) {
		this.shadow = shadow;
	}

	public String getInline() {
		return inline;
	}

	public void setInline(String inline) {
		this.inline = inline;
	}

	public String getModal() {
		return modal;
	}

	public void setModal(String modal) {
		this.modal = modal;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
